<?php
$s['AddTitle'] = "Report";
$this->load->view('mem/a_header',$s);
$this->load->view('mem/a_panel_v');
?>
<h1>Report</h1>
<h2>Member register</h2>
<p>
	Today : <?=$inperiod['today']?><br />
	Yesterday : <?=$inperiod['yesterday']?><br />
	This month: <?=$inperiod['thismonth']?><br />
	Last month: <?=$inperiod['lastmonth']?><br />
	This year : <?=$inperiod['thisyear']?><br />
	Last year : <?=$inperiod['lastyear']?><br />
</p>
<?
/// member register today vs yesterday
$this->graph_obj->open_flash_chart_object( 300, 200, base_url().'mem/admin/memberreport/today',FALSE,base_url().'jsc/mem/graph/' );
?>
<?
/// member register this month vs last month
$this->graph_obj->open_flash_chart_object( 300, 200, base_url().'mem/admin/memberreport/thismonth',FALSE,base_url().'jsc/mem/graph/' );
?>
<?
/// member register this year vs last year
$this->graph_obj->open_flash_chart_object( 300, 200, base_url().'mem/admin/memberreport/thisyear',FALSE,base_url().'jsc/mem/graph/' );
?>
<h2>Member state</h2>
<p><?php
while($t = mysql_fetch_assoc($counts)){
	echo $this->member->SetUserStatus($t['userstatus'])." : ".$t['count']."<br />\n";
}
?>
<?
/// member state
$this->graph_obj->open_flash_chart_object( 600, 300, base_url().'mem/admin/memberreport/userstate',FALSE,base_url().'jsc/mem/graph/' );
?>
</p>
<?php
$this->load->view('mem/a_footer');
?>